﻿using Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class GDContext : DbContext
    {
        /// <summary>
        /// 学习计划表
        /// </summary>
        public DbSet<LearningPlan> LearningPlans { get; set; }

        // <summary>
        /// 已学习时间表
        /// </summary>
        public DbSet<Leaned> Leaneds { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public GDContext() : base("name=GGSDDU_ConnStr")
        {
        }
    }
}
